import numpy
import numpy as np

# aranage()函数
arr1 = numpy.arange(0, 4)
arr2 = numpy.arange(1, 10, 2)
arr3 = numpy.arange(0, 1, 0.2)
arr4 = numpy.arange(5, 0, -1)
print(arr1, arr2, arr3, arr4)

# linspace()函数
arr1 = numpy.linspace(5, 12, num=5, endpoint=False, retstep=True)
print(arr1)

# logspace()函数
arr22 = numpy.logspace(2, 8, num=5,endpoint=False, base=2)
print(arr22)
